package cn.wolfcode.qo;

import cn.wolfcode.util.ObjectEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class AppointmentQueryObject extends QueryObject{
    private String ano;
    private Long typeId;
    private Integer status;
    private Long businessIdd;
    private String contactName;
    private String contactTel;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    Date minDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    Date maxDate;

    public String getEnumName(){
        return ObjectEnum.findName(status);
    }
}
